//package com.harmay.center.monitor.config;
//
//import io.prometheus.client.CollectorRegistry;
//import io.prometheus.client.exporter.PushGateway;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.cloud.context.config.annotation.RefreshScope;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @author Zuper
// * @version 1.0
// * @date 2022/6/28 14:26
// */
//@RefreshScope
//@Configuration
//public class PrometheusConfig {
//
//    @Value("${prometheus.pushgateway.url}")
//    private String PUSHGATEWAY_URL;
//
//    @Bean
//    public PushGateway init() {
//        return new PushGateway(PUSHGATEWAY_URL);
//    }
//
//}
